package br.com.statizo.financeiro.core.repository.impl;

import snoghert.db.util.PersistenceUtil;
import br.com.statizo.financeiro.domain.entity.impl.Configuracoes;
import br.com.statizo.financeiro.domain.repo.impl.RepositorioAbstrato;

public class ConfiguracoesRepositorio extends RepositorioAbstrato<Configuracoes>{

	public ConfiguracoesRepositorio(PersistenceUtil persistenceUtility) {
		super(persistenceUtility);
	}

	public Configuracoes getConfiguracoes(){
		try{
			return entityManager.createQuery("from Configuracoes",Configuracoes.class).getSingleResult();
		}catch(Exception e){
			return null;
		}
	}
	
}
